<?php

declare(strict_types=1);

namespace App\Model;



/**
 * @property int $role_id 角色id
 * @property string $role_name 角色名称
 * @property string $rules 角色权限(menus_id)
 * @property int $status 状态
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class SysRole extends Model
{
    protected string $primaryKey = 'role_id';
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'sys_role';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['role_id', 'role_name', 'rules', 'status', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['role_id' => 'integer', 'rules' => 'array','status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
